package cn.edu.sgu.www.pms.mapper;

import cn.edu.sgu.www.pms.entity.Application;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Repository
public interface ApplicationMapper extends BaseMapper<Application> {

    /**
     * 通过应用名查询应用ID
     * @param name 应用名
     * @return 应用ID
     */
    @Select("select id from application where name = #{name}")
    Integer getServiceId(@Param("name") String name);
}